package com.last1mile.dao.mock;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.last1mile.dao.interfaces.DistrictDao;
import com.last1mile.pojo.DistrictDO;

//@Component("districtDao")
public class DistrictDaoImplMock implements DistrictDao {
	@Override
	public List<DistrictDO> selectByDistrictUpId(String districtUpId)
			throws SQLException {
		List<DistrictDO> records = new ArrayList<DistrictDO>();
		DistrictDO district = new DistrictDO();
		district.setAreacode("0571");
		district.setCnName("滨江");
		district.setDistrictId("001001001001");
		district.setDistrictType("区");
		district.setDistrictUpId("001001001");
		district.setEnName("binjiang");
		district.setId(3);
		district.setZipcode("310052");
		records.add(district);
		return records;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void insert(DistrictDO record) throws SQLException {
		// TODO Auto-generated method stub

	}

	@Override
	public DistrictDO selectByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(DistrictDO record) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(DistrictDO record)
			throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
